﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsValidateRoomInfo _iCsValidateRoomInfo = null;

        public static ICsValidateRoomInfo CreateCsValidateRoomInfo()
        {
            if (_iCsValidateRoomInfo == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsValidateRoomInfo_Sys";
                _iCsValidateRoomInfo = (ICsValidateRoomInfo)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsValidateRoomInfo;
        }
    }


    public interface ICsValidateRoomInfo
    {
        DataTable GetEmptyTable();
        bool Insert(DataTable dt);
    }
}
